<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

class AddH5TypeToVersions extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('versions', function (Blueprint $table) {

        });
        DB::statement(" ALTER TABLE `versions` MODIFY COLUMN type ENUM('android','ios','h5')");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('versions', function (Blueprint $table) {
            //
        });
        DB::statement(" ALTER TABLE `versions` MODIFY COLUMN type ENUM('android','ios')");
    }
}
